﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using LyData.Data;
using LyData.Data.Xml;

public partial class Controls_bottom : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Bind();
        }
    }

    protected void Bind()
    {
        string str = "0";
        DataRow row = new XmlProvider(base.Server.MapPath("~/App_Data/Website.xml")).ReadNode(string.Format("descendant::Info[Language={0}]", str));
        if (row != null)//读取版权信息
        {
            this.botom.Text = (string)row["CopyRight"];
        }
    
    }
}
